import { App } from "vue";
import { createPersistedState } from "pinia-plugin-persistedstate";

export default function installPinia(app: App) {
  const pinia = createPinia();
  const persistedState = createPersistedState();

  pinia.use(persistedState);
  app.use(pinia);
}
